
/* GENEL AYARLAR */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Arkaplan animasyonu */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #6a11cb, #ff00cc);
    background-size: 400% 400%;
    animation: bgAnim 8s infinite alternate;
}

@keyframes bgAnim {
    0% {
        background-position: left;
    }

    100% {
        background-position: right;
    }
}

/* SPLASH EKRANI */

.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f2027;
    z-index: 999;
    animation: splashGider 1.5s forwards;
}

@keyframes splashGider {
    0%, 60% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        z-index: -1;
    }
}


/* GİRİŞ KUTUSU */

.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    backdrop-filter: blur(15px);
    width: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 10;
    animation: kutuGelir 1.5s forwards;
}

@keyframes kutuGelir {
    0%, 60% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* HATA MESAJI TASARIMI */

#hata-mesaji {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: -15px; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.login-box.error-active #hata-mesaji {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-bottom: 5px;
}


/* INPUT STİLİ */

input {
    padding: 12px;
    width: 85%;
    border-radius: 10px;
    border: 1px solid #444;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    outline: none;
}

    input:focus {
        border-color: #00c6ff;
    }

/* BUTON STİLİ */

button {
    margin-top: 20px;
    padding: 12px;
    width: 95%;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #00c6ff, #ff00cc);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

    button:active {
        transform: scale(0.95);
    }


/* BAŞARILI ÇIKIŞ ANİMASYONU */

.basarili-cikis {
    animation: cikisAnim 0.3s ease-in forwards !important;
}

@keyframes cikisAnim {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(10px);
    }
}


/* HATA SALLANMA ANİMASYONU */

.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-52%, -50%);
    }

    75% {
        transform: translate(-48%, -50%);
    }
}
